<?php
require_once('../carbox.php');
if(!carbox_check_session( ))
	header('Location: http://'.$_SERVER['HTTP_HOST'].'/carbox/login.php');
?>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<form class="form-horizontal">
				<div class="control-group">
					<label class="control-label" for="profile">Perfil</label>
					<div class="controls">
						<select class="span8" id="profile">
							<?php
							$query = end(carbox_query("SELECT * FROM Profile WHERE id NOT IN (1, 6) ORDER BY label"));
							for($i = 0; $i < count($query); ++$i)
								echo '<option value="'.$query[$i]['id'].'">'.$query[$i]['label'].'</option>'
							?>
						</select>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="login">Login</label>
					<div class="controls">
						<input type="text" class="span8" id="login" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="password">Senha</label>
					<div class="controls">
						<input type="password" class="span8" id="password" />
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="chkpwd">Confirmação</label>
					<div class="controls">
						<input type="password" class="span8" id="chkpwd" />
					</div>
				</div>
			</form>
		</div>		
	</div>
</div>
